package tw.cating.Utility;

import java.util.Calendar;

public class StringUtil {
	
	public static String Calendar(Calendar c) {
		return String.format("%04d/%02d/%02d %02d:%02d:%02d",
				c.get(Calendar.YEAR),
				c.get(Calendar.MONTH),
				c.get(Calendar.DAY_OF_MONTH),
				c.get(Calendar.HOUR_OF_DAY),
				c.get(Calendar.MINUTE),
				c.get(Calendar.SECOND));
	}
}
